﻿namespace OboutInc.TextMenu
{
    using System;
    using System.ComponentModel;

    [ToolboxItem(false)]
    public class Item
    {
        private string _id;
        private string _innerHtml;
        private string _parentId;
        private string _url;
        private string _urlTarget;

        public Item()
        {
        }

        public Item(string parentId, string id)
        {
            this._parentId = parentId;
            this._id = id;
        }

        public Item(string parentId, string id, string InnerHtml) : this(parentId, id)
        {
            this._innerHtml = InnerHtml;
        }

        public Item(string parentId, string id, string InnerHtml, string Url) : this(parentId, id, InnerHtml)
        {
            this._url = Url;
        }

        public Item(string parentId, string id, string InnerHtml, string Url, string UrlTarget) : this(parentId, id, InnerHtml, Url)
        {
            this._urlTarget = UrlTarget;
        }

        public string ID
        {
            get
            {
                if (this._id != null)
                {
                    return this._id;
                }
                return string.Empty;
            }
            set
            {
                this._id = value;
            }
        }

        public string InnerHtml
        {
            get
            {
                if (this._innerHtml != null)
                {
                    return this._innerHtml;
                }
                return string.Empty;
            }
            set
            {
                this._innerHtml = value;
            }
        }

        public string ParentID
        {
            get
            {
                if (this._parentId != null)
                {
                    return this._parentId;
                }
                return string.Empty;
            }
            set
            {
                this._parentId = value;
            }
        }

        public string Url
        {
            get
            {
                if (this._url != null)
                {
                    return this._url;
                }
                return string.Empty;
            }
            set
            {
                this._url = value;
            }
        }

        public string UrlTarget
        {
            get
            {
                if (this._urlTarget != null)
                {
                    return this._urlTarget;
                }
                return string.Empty;
            }
            set
            {
                this._urlTarget = value;
            }
        }
    }
}

